import React, { Component } from 'react';
import {
  TouchableOpacity,
  Text,
  View,
  Image
} from 'react-native';
export default class HeaderTitle extends Component{
  render(){
    return(
      <TouchableOpacity onPress={this.props.press} style={{height:50,justifyContent:'center',
        alignItems:'center',backgroundColor:'#fff',paddingLeft:30,paddingRight:30}}>
        <Text style={{fontSize:18,paddingBottom:5, color:this.props.textColor}}>{this.props.title}</Text>
        <View style={{width:20,height:2,backgroundColor:this.props.viewColor}}></View>
      </TouchableOpacity>
    )
  }
}